// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('starter', ['ionic', 'myServices', 'myControllers'])

.run(function($ionicPlatform) {
		$ionicPlatform.ready(function() {
			// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
			// for form inputs)
			if (window.cordova && window.cordova.plugins.Keyboard) {
				cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
			}
			if (window.StatusBar) {
				StatusBar.styleDefault();
			}
		});
	})
	.config(function($stateProvider, $urlRouterProvider) {
		$stateProvider.state('guide', {
			url: "/guide",
			templateUrl: "views/guide.html",
			controller: 'GuideCtrl'

		}).state('index', {
			url: "/index",
			templateUrl: "views/index.html",
			controller: 'IndexCtrl'
		})
		$urlRouterProvider.otherwise('/guide');
	});